projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd266cb
)
Can't select file on file browser after changing sort order
author
Benjamin Otte
<otte@redhat.com>
Wed, 16 Jun 2010 10:41:40 +0000
(12:41 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Mon, 28 Jun 2010 12:19:18 +0000
(14:19 +0200)
The row values are 1-indexed not 0-indexed, this has to be taken into
account when producing the new_order array.
https://bugzilla.gnome.org/show_bug.cgi?id=621414
gtk/gtkfilesystemmodel.c
patch
|
blob
|
history
diff --git
a/gtk/gtkfilesystemmodel.c
b/gtk/gtkfilesystemmodel.c
index 738b06156379d7ef60eee91554b84fc3c47f19d1..7c9e1dca0f51f7141476853cbf6794b7eb2563b7 100644
(file)
--- a/
gtk/gtkfilesystemmodel.c
+++ b/
gtk/gtkfilesystemmodel.c
@@
-739,7
+739,7
@@
gtk_file_system_model_sort (GtkFileSystemModel *model)
continue;
}
- new_order[r] = node->row;
+ new_order[r] = node->row
- 1
;
r++;
node->row = r;
}